<?php
session_start();

if (isset ($_POST['name'])) {} //echo $_POST['name'];
else  echo "Post non arrivato.";

$var_name ="undefined";
if (isset ($_POST['name'])) {
	$var_name=$_POST['name'];
}

if (isset ($_SESSION[$var_name])) echo $_SESSION[$var_name];
//echo "\$_SESSION[$var_name])".$_SESSION[$var_name].$_SESSION['spurpoz'];
else  echo "";


?>